package com.itlaobing.exam.entity;

import java.io.Serializable;

public class Option implements Serializable {

    private Integer id; // 对象标识符(对应数据库中的主键)
    private String content; // 选项内容
    private String code; // 选项中可能包含的代码
    private boolean key; // 当前选项是否是其所属题目的正确答案

    // 维护从 Option 到 Topic 的 多对一 关联关系
    private Topic topic; // 当前选项是属于哪个题目的

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isKey() {
        return key;
    }

    public void setKey(boolean key) {
        this.key = key;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }
}